package cn.iocoder.yudao.module.train.controller.admin.teaching.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 授课管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class TeachingRespVO {

    @Schema(description = "授课管理主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21420")
    @ExcelProperty("授课管理主键")
    private Long id;

    @Schema(description = "商品课程名称", example = "王五")
    @ExcelProperty("商品课程名称")
    private String commodityName;

    @Schema(description = "课程组名称", example = "张三")
    @ExcelProperty("课程组名称")
    private String groupName;

    @Schema(description = "老师名称", example = "芋艿")
    @ExcelProperty("老师名称")
    private String teacherName;

    @Schema(description = "报名学生人数")
    @ExcelProperty("报名学生人数")
    private Long studentQuantity;

    @Schema(description = "剩余课时")
    @ExcelProperty("剩余课时")
    private Integer remainderCourseTime;

    @Schema(description = "课程总课时")
    @ExcelProperty("课程总课时")
    private Integer allCourseTime;

    @Schema(description = "课程状态", example = "1")
    @ExcelProperty(value = "课程状态", converter = DictConvert.class)
    @DictFormat("train_course_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String commodityStatus;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}